Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "value-type-search-along-path">

It allows to retrieve the geolocated events in a given temporal range (day, week or month).

Inputs

A JSON with these parameters:
path string
"<WKT_string>” a described as Well Known Text
valuetype string
the value type registered by sensors that are searched
maxresults number
maximum number of results to be returned (if parameter is missing 100 is assumed), if it is 0 all results are returned

Outputs

  1. ServiceUri Array
    Returns an array containing the servicesUri of each service found
  2. GeoJSON Results
    the results format is a GeoJSON “FeatureCollection” with the matching events. For each “Feature” a set of properties is provided.d

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.